package com.qqtop10.manager.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.qqtop10.manager.dao.WalletMapper;
import com.qqtop10.manager.model.CusCons;
import com.qqtop10.manager.model.PagingArgs;
import com.qqtop10.manager.service.WalletService;

@Service("WalletService")
public class WalletServiceImpl extends BaseService implements WalletService {
	@Autowired
	private WalletMapper walletMapper;
	@Override
	public List<CusCons> all(CusCons input, PagingArgs pagingArgs) {
		
		return walletMapper.all(asMap(input, pagingArgs));
	}
	@Override
	public int count(CusCons input) {
		try {
			return walletMapper.count(input);
		} catch (Exception e) {
			return 0;
		}
	}
	@Override
	public List<CusCons> selectById(CusCons input, PagingArgs pagingArgs){
		return walletMapper.selectById(asMap(input, pagingArgs));
	}

}
